/**
 * 
 */
package com.study.proxy.ext;

import java.lang.reflect.InvocationTargetException;

/**
 * @author Administrator
 * @date 2019年6月22日
 */
public class App {
	
	public static void main(String[] args) throws Throwable {
		System.out.println("123");
		ExtJdkInvocationHandler extJdkInvocationHandler = new ExtJdkInvocationHandler(new OrderServiceImpl());
		OrderService proxy = extJdkInvocationHandler.getProxy();
		proxy.order();
		//通过classloader 动态实现代理
	}
}
